#{extends 'CRUD/layout.html' /}
 
<div id="crudList" class="${type.name}">
	
	<h2 id="crudListTitle">&{'crud.list.title', type.name}</h2>
 
	<div id="crudListSearch">
		#{crud.search /}
	</div>
 
	<div id="crudListTable">
		#{crud.table fields:['id', 'user', 'departurestate', 'arrivestate']}
		   #{crud.custom 'id'}
		      <a href="@{AdminHitchhikerJourneys.show(object.id)}">${object.id}</a>
		   #{/crud.custom}
		   #{crud.custom 'user'}
		      <a href="@{AdminHitchhikerJourneys.show(object.id)}">${object.user.name}</a>
		   #{/crud.custom}
		   #{crud.custom 'departurestate'}
		      <a href="@{AdminHitchhikerJourneys.show(object.id)}">${object.departurestate}</a>
		   #{/crud.custom}
		   #{crud.custom 'arrivestate'}
		      <a href="@{AdminHitchhikerJourneys.show(object.id)}">${object.arrivestate}</a>
		   #{/crud.custom}
        #{/crud.table}
	</div>
	
	<div id="crudListPagination">
		#{crud.pagination /}
	</div>
	
	<p id="crudListAdd">
		<a href="@{blank()}">&{'crud.add', type.modelName}</a>
	</p>
 
</div>